package cn.tedu.visualization.dao.persist.repository.impl;

import cn.tedu.visualization.dao.persist.mapper.TestPieMapper;
import cn.tedu.visualization.dao.persist.repository.ITestPieRepository;
import cn.tedu.visualization.pojo.entity.PieDemo;
import cn.tedu.visualization.pojo.entity.PieDemo1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class TestPieRepository implements ITestPieRepository {

    @Autowired
    private TestPieMapper mapper;

    @Override
    public List<PieDemo> countUser() {
        return mapper.countUser();
    }

    @Override
    public List<PieDemo1> countOrder() {
        return mapper.countOrder();    }


//    @Override
//    public int countOrder() {
//        Integer countOrder = mapper.countOrder();
//        return countOrder;
//    }
}
